package com.kevin.exceptions;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BaseException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private static final Logger LOGGER = LoggerFactory.getLogger(BaseException.class);
	
	public BaseException() {
		super();
		LOGGER.error(StringUtils.EMPTY,this);
	}
	
	public BaseException(String message) {
		super(message);
		LOGGER.error(message,this);
	}
	
	public BaseException(String message, Throwable cause) {
		super(message, cause);
		LOGGER.error(message,cause);
	}
	
	public BaseException(Throwable cause) {
		super(cause);
		LOGGER.error(StringUtils.EMPTY,cause);
	}
}
